Algorithmically informed randomization (taking into account phenotypes)